package cn.edu.hy.demo07.service;

import cn.edu.hy.demo07.entity.Country;
import cn.edu.hy.demo07.mapper.CountryMapper;
import com.github.monee1988.mybatis.entity.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CountryService {

    @Autowired
    private CountryMapper countryMapper;


    public Page<Country> findPageList(Country country, Page<Country> page) {
        country.setPage(page);
        page.setList(countryMapper.findList(country));
        return page;
    }
}
